import { httpTokenRequest } from '../utils/http.js';

//获取江湖秘笈列表
export function getMijiList(params) {
	return httpTokenRequest({
		url: '/api/Jianghunew/getMijiList',
		method: 'POST',
		params: params
	});
}
//获取等你来战列表
export function getLaizhanList(params) {
	return httpTokenRequest({
		url: '/api/Jianghunew/getLaizhanList',
		method: 'POST',
		params: params
	});
}

//获取江湖秘笈详情
export function getMijiDetail(params) {
	return httpTokenRequest({
		url: '/api/Jianghunew/getQuizDetail',
		method: 'POST',
		params: params
	});
}

//评论江湖秘笈详情
export function subComment(params) {
	return httpTokenRequest({
		url: '/api/Jianghunew/addCommentSubmit',
		method: 'POST',
		params: params
	});
}

//评论江湖秘笈详情
export function collectMjDetail(params) {
	return httpTokenRequest({
		url: '/api/Jianghunew/setCollect',
		method: 'POST',
		params: params
	});
}

//评论江湖秘笈详情
export function delMyComment(params) {
	return httpTokenRequest({
		url: '/api/Jianghunew/delMyComment',
		method: 'POST',
		params: params
	});
}

//我的提问列表
export function getMyAsk(params) {
	return httpTokenRequest({
		url: '/api/user/getJianghuMyQuiz',
		method: 'POST',
		params: params
	});
}

//我的回答列表
export function getMyAnswer(params) {
	return httpTokenRequest({
		url: '/api/user/getJianghuMyAns',
		method: 'POST',
		params: params
	});
}

//点赞评论
export function getGood(params) {
	return httpTokenRequest({
		url: '/api/Jianghunew/new_setLikecomment',
		method: 'POST',
		params: params
	});
}

//我删除我的提问
export function delMyAsk(params) {
	return httpTokenRequest({
		url: '/api/user/delmyquiz',
		method: 'POST',
		params: params
	});
}
